﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Demo.Util
{
    public partial class IntervalInvokerDemo : Form
    {
        public IntervalInvokerDemo()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Cocon90.Lib.Util.IntervalInvoker.CreateInstence(10, 100).Invoke(() =>
            {
                this.Width += 1;
            }, true, () =>
            {
                Cocon90.Lib.Util.IntervalInvoker.CreateInstence(10, 100).Invoke(() =>
                {
                    this.Height++;
                });
            });
        }
    }
}
